using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;

public class HealthBar : MonoBehaviour {
	public Transform barTr;
	public GameObject container;

	public void SetFill(float fill) {
		fill = Mathf.Clamp01(fill);
		barTr.DOScaleX(fill, 0.1f);
	}

	public void SetShow(bool isShow) {
		container.SetActive(isShow);
	}
}
